﻿


using ctolua.Model;

namespace ctolua
{

    public class testR
    {
        public int id { get; set; }
        public string name { get; set; }
    }
    public class Program
    {

       

        public static void Main()
        {
            //Console.WriteLine("hello lua!");
            //List<a> list = new List<a>();
            //list.Add(new a() { 
            // id=1,
            //  name="a",
            //});
            //list.Add(new a()
            //{
            //    id = 2,
            //    name = "b",
            //});

            //list.ForEach(x => { 
                
            //    Console.WriteLine(x.id == 1 ? 1 : "不是1");
            //} );
            
            Console.WriteLine($"本地玩家：{game_api.get_role_by_int(game_api.get_owner_role_id()).get_role_res("official_res_1").@int() }");
            Console.WriteLine(game_api.get_role_by_int(game_api.get_owner_role_id()).id());

        }
    }
}